from django.contrib import admin
from .models import Article, Categroy, Comments


class ArticleAdmin(admin.ModelAdmin):

    list_display = ('id','title', 'body', 'created','status','topped','abstract', 'categroy')


class CategroyAdmin(admin.ModelAdmin):
    list_display = ('id','theme','created')


class CommentsAdmin(admin.ModelAdmin):
    list_display = ('comment_body','comment_time','comment_like')


admin.site.register(Categroy, CategroyAdmin)
admin.site.register(Article, ArticleAdmin)
admin.site.register(Comments, CommentsAdmin)
